Skip to content

feat: swagger 추가#12

Merged
west-eastH merged 3 commits intodevelopfrom
feat/11-swagger
Jul 2, 2025
Merged

feat: swagger 추가#12
west-eastH merged 3 commits intodevelopfrom
feat/11-swagger

Conversation

@choiseoji
Copy link
Contributor

✨ 연관된 이슈

close #11


📝 작업 내용 (주요 변경 사항)

  • swagger config 작성
  • swagger login 설정

💬 리뷰 요구사항

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

시큐리티에 requestMatchers 에 들어갈 uri 패턴들을 final 변수로 관리하면 좋을거 같아서 수정해봤는데 한번 보고 의견주세요!

@choiseoji choiseoji self-assigned this Jul 2, 2025
@choiseoji choiseoji added the ✨feat 기능 개발 시 label Jul 2, 2025
@choiseoji choiseoji linked an issue Jul 2, 2025 that may be closed by this pull request
1 task
@github-actions
Copy link

github-actions bot commented Jul 2, 2025

Test Coverage Report

Overall Project 41.16% 🍏

There is no coverage information present for the Files changed

Copy link
Contributor

@west-eastH west-eastH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

.password(passwordEncoder().encode(swaggerPassword))
.roles("SWAGGER")
.build();
return new InMemoryUserDetailsManager(user);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이런건 어떻게 아셨어요..? 시큐리티 고수,,,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ㅋㅋㅋ api 외부로 노출되면 안 된다고 해서..

@Order(2)
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.securityMatcher(PermitAllPatterns)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기에 permitAllPatterns가 들어가면 저기에만 시큐리티 적용 아닌가요??

Copy link
Contributor Author

@choiseoji choiseoji Jul 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

securityMatcher에 있는 uri에 대해서 해당 필터 체인을 적용하겠다는 의미로 적었습니다!!!
(저거 추가 안하니깐 스웨거 요청도 다 저 필터 체인으로 걸리길래..추가했습니다)

@west-eastH west-eastH merged commit 8228b35 into develop Jul 2, 2025
1 check passed
@west-eastH west-eastH deleted the feat/11-swagger branch July 2, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨feat 기능 개발 시

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨feat : 스웨거 설정

2 participants